package com.beamfield.dao.sys;

import com.beamfield.model.Certificate;
import com.beamfield.modelVo.CertificateVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CertificateMapper {
    int deleteByPrimaryKey(Long certificate_id);

    int insert(Certificate record);

    int insertSelective(Certificate record);

    Certificate selectByPrimaryKey(Long certificate_id);

    int updateByPrimaryKeySelective(Certificate record);

    int updateByPrimaryKey(Certificate record);

    int insertList(List<Certificate> certificateRecord);

    List<CertificateVo> selectByEcode(@Param("beamId") long beamId, @Param("offset") String offset, @Param("limit") String limit, @Param("ecode") String ecode);

    long countByEcode(@Param("beamId")long beamId,@Param("ecode") String ecode);

    List<Certificate> selectExpiry();

    int updateBeamIdByEcode(@Param("ecode") String ecode,@Param("beamId") String acBemaId);
}